﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<style>
    #dd {
        position: absolute;
        left: 100px;
        top: 100px;
    }
</style>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>父老乡亲们我想死你们了</title>
    <script type="text/javascript">
        var d = new Date();
        var time = d.getHours();
        function check() {
            if (time >= 6 && time < 12)
                {alert("早上好！早饭吃了没！");}
            else if (time >= 12 && time <= 18)
                {alert("下午好！午饭吃了没！");}
            else if (time > 18 && time < 24)
                {alert("晚上好！晚饭吃了没！");}
            else
                {alert("半夜好！夜宵吃了没！");}
        }</script>
</head>

<body>
<div class="wrap">
<input id='dd' align="center" name="Button" type="button" onclick="check()" value="吃了没" /> 
    <a href="register.htm">返回</a>
</div>
</body>
</html>
</html>